#define _CRT_SECURE_NO_WARNINGS   1


#include"BT.h"
int main()
{
	BTNode* node1 = BuyNode(1);
	BTNode* node2 = BuyNode(2);
	BTNode* node3 = BuyNode(3);
	BTNode* node4 = BuyNode(4);
	BTNode* node5 = BuyNode(5);
	BTNode* node6 = BuyNode(6);
	node1->left = node2;
	node1->right = node4;
	node2->left = node3;
	node2->right = NULL;
	node4->left = node5;
	node4->right = node6;
	node3->right = NULL;
	node3->left = NULL;
	node5->left = NULL;
	node5->right = NULL;
	node6->left = NULL;
	node6->right = NULL;

	PrePrint(node1);
	printf("\n");
	MidPrint(node1);
	printf("\n");
	AfterPrint(node1);


	return 0;
}